<?php
use think\facade\Route;

Route::post('login', 'index.Login/loginPasswd');

Route::group(function(){
    Route::post('upload', 'uploade.Uploade/LayUploadFile');
    /****vip管理-开始****/
    Route::get('vip/:id', 'vip.Index/getDetail');
    Route::get('vip', 'vip.Index/getList');
    Route::post('vip/import_user', 'vip.Index/import_user');
    Route::post('vip', 'vip.Index/add');
    Route::put('vip/:id', 'vip.Index/edit');
    Route::delete('vip', 'vip.Index/del');
    /****vip管理-结束****/

    /****公告管理-开始****/
    Route::get('notice/:id', 'notice.Index/getDetail');
    Route::get('notice', 'notice.Index/getList');
    Route::post('notice', 'notice.Index/add');
    Route::put('notice/:id', 'notice.Index/edit');
    Route::delete('notice', 'notice.Index/del');
    /****公告管理-结束****/

    /****用户管理-开始****/
    Route::get('user/:id', 'user.User/getDetail');
    Route::get('user', 'user.User/getList');
    Route::post('user/import', 'user.User/import');
    Route::post('user', 'user.User/add');
    Route::put('user/:id', 'user.User/edit');
    Route::delete('user', 'user.User/del');
    /****用户管理-结束****/

    /****用户管理-开始****/
    Route::get('writer_apply/:id', 'user.UserWriterApply/getDetail');
    Route::get('writer_apply', 'user.UserWriterApply/getList');
    Route::post('writer_apply/audit', 'user.UserWriterApply/audit');
    Route::put('writer_apply/:id', 'user.UserWriterApply/edit');
    Route::delete('writer_apply', 'user.UserWriterApply/del');
    /****用户管理-结束****/

    /****用户类型管理-开始****/
    Route::get('user_type/:id', 'user.UserType/getDetail');
    Route::get('user_type', 'user.UserType/getList');
    Route::post('user_type', 'user.UserType/add');
    Route::put('user_type/:id', 'user.UserType/edit');
    Route::delete('user_type', 'user.UserType/del');
    /****用户类型管理-结束****/

    /****用户音乐审核管理-开始****/
    Route::get('user_music_apply/:id', 'user.UserMusicApply/getDetail');
    Route::get('user_music_apply', 'user.UserMusicApply/getList');
    Route::post('user_music_apply/audit', 'user.UserMusicApply/audit');
    /****用户音乐审核管理-结束****/

    /****创作者提现审核管理-开始****/
    Route::get('writer_withdraw/:id', 'user.UserWriterWithdraw/getDetail');
    Route::get('writer_withdraw', 'user.UserWriterWithdraw/getList');
    Route::post('writer_withdraw/audit', 'user.UserWriterWithdraw/audit');
    /****创作者提现审核管理-结束****/

    /****音乐管理-开始****/
    Route::group('music',function(){
        /****库（单曲）管理-开始****/
        Route::group(function(){
            /****库（单曲）管理-开始****/
            Route::get('music/:id', 'music.Music/getDetail');
            Route::get('music', 'music.Music/getList');
            Route::post('music/edit_other', 'music.music/edit_other');
            Route::post('music/import', 'music.Music/import');
            Route::post('music', 'music.Music/add');
            Route::put('music/:id', 'music.Music/edit');
            Route::delete('music', 'music.Music/del');
            /****库（单曲）管理-结束****/
            /****库（单曲）类型管理-开始****/
            Route::get('music_type/:id', 'music.MusicType/getDetail');
            Route::get('music_type', 'music.MusicType/getList');
            Route::post('music_type', 'music.MusicType/add');
            Route::put('music_type/:id', 'music.MusicType/edit');
            Route::delete('music_type', 'music.MusicType/del');
            /****库（单曲）类型管理-结束****/
        });
        /****库（单曲）管理-结束****/
        /****精选音乐包管理-开始****/
        Route::group(function(){

            /****精选音乐包管理-开始****/
            Route::get('selected_package/:id', 'music.MusicSelectedPack/getDetail');
            Route::get('selected_package', 'music.MusicSelectedPack/getList');
            Route::post('selected_package/edit_other', 'music.MusicSelectedPack/edit_other');
            Route::post('selected_package', 'music.MusicSelectedPack/add');
            Route::put('selected_package/:id', 'music.MusicSelectedPack/edit');
            Route::delete('selected_package', 'music.MusicSelectedPack/del');
            /****精选音乐包管理-结束****/

            /****精选类型管理-开始****/
            Route::get('selected_package_type/:id', 'music.MusicSelectedPackType/getDetail');
            Route::get('selected_package_type', 'music.MusicSelectedPackType/getList');
            Route::post('selected_package_type', 'music.MusicSelectedPackType/add');
            Route::put('selected_package_type/:id', 'music.MusicSelectedPackType/edit');
            Route::delete('selected_package_type', 'music.MusicSelectedPackType/del');
            /****精选音乐包管理-结束****/
        });
        /****精选音乐包管理-结束****/


        /****套曲串烧管理-开始****/
        Route::group('',function(){
            /****套曲串烧管理-开始****/
            Route::get('skewer/:id', 'music.MusicSkewer/getDetail');
            Route::get('skewer', 'music.MusicSkewer/getList');
            Route::post('skewer/edit_other', 'music.MusicSkewer/edit_other');
            Route::post('skewer', 'music.MusicSkewer/add');
            Route::put('skewer/:id', 'music.MusicSkewer/edit');
            Route::delete('skewer', 'music.MusicSkewer/del');
            /****套曲串烧管理-结束****/

            /****套曲串烧分类管理-开始****/
            Route::get('skewer_type/tree', 'music.MusicSkewerType/getTree');
            Route::get('skewer_type/:id', 'music.MusicSkewerType/getDetail');
            Route::get('skewer_type', 'music.MusicSkewerType/getList');
            Route::post('skewer_type', 'music.MusicSkewerType/add');
            Route::put('skewer_type/:id', 'music.MusicSkewerType/edit');
            Route::delete('skewer_type', 'music.MusicSkewerType/del');
            /****套曲串烧分类管理-结束****/
        });
        /****套曲串烧管理-结束****/

        /****Dj教学管理-开始****/
        Route::group('',function(){
            Route::get('dj_teaching/:id', 'music.MusicDjTeaching/getDetail');
            Route::get('dj_teaching', 'music.MusicDjTeaching/getList');
            Route::post('dj_teaching/edit_other', 'music.MusicDjTeaching/edit_other');
            Route::post('dj_teaching', 'music.MusicDjTeaching/add');
            Route::put('dj_teaching/:id', 'music.MusicDjTeaching/edit');
            Route::delete('dj_teaching', 'music.MusicDjTeaching/del');
        });
        /****Dj教学管理-结束****/

        /****独家DJ单曲-开始****/
        Route::group(function(){

            /****独家DJ单曲-开始****/
            Route::get('dj/:id', 'music.MusicDj/getDetail');
            Route::get('dj', 'music.MusicDj/getList');
            Route::post('dj/edit_other', 'music.MusicDj/edit_other');
            Route::post('dj', 'music.MusicDj/add');
            Route::put('dj/:id', 'music.MusicDj/edit');
            Route::delete('dj', 'music.MusicDj/del');
            /****独家DJ单曲-结束****/

            /****独家DJ单曲分类-开始****/
            Route::get('dj_type/tree', 'music.MusicDjType/getTree');
            Route::get('dj_type/:id', 'music.MusicDjType/getDetail');
            Route::get('dj_type', 'music.MusicDjType/getList');
            Route::post('dj_type', 'music.MusicDjType/add');
            Route::put('dj_type/:id', 'music.MusicDjType/edit');
            Route::delete('dj_type', 'music.MusicDjType/del');
            /****独家DJ单曲分类-结束****/
        });
        /****独家DJ单曲-结束****/

        /****福利中心-开始****/
        Route::group(function(){

            /****独家DJ单曲-开始****/
            Route::get('welfare/:id', 'music.MusicWelfare/getDetail');
            Route::get('welfare', 'music.MusicWelfare/getList');
            Route::post('welfare', 'music.MusicWelfare/add');
            Route::put('welfare/:id', 'music.MusicWelfare/edit');
            Route::delete('welfare', 'music.MusicWelfare/del');
            /****独家DJ单曲-结束****/
        });
        /****福利中心-结束****/

        /****评论-开始****/
        Route::group(function(){
            Route::get('comment', 'music.MusicComment/getList');
            Route::post('comment/audit', 'music.MusicComment/audit');
        });
        /****评论-结束****/

        /****单曲文件-开始****/
        Route::get('files', 'music.MusicFiles/getList');
        Route::post('files/export', 'music.MusicFiles/export');
        Route::post('files', 'music.MusicFiles/add');
        Route::delete('files', 'music.MusicFiles/del');
        /****单曲文件-结束****/
    })->prefix('music/');
    /****音乐管理-结束****/

    /****实物管理-开始****/
    Route::group('entity',function(){

        /****人声TAG定制-开始****/
        Route::group('',function(){
            Route::get('voice/:id', 'entity.EntityVoice/getDetail');
            Route::get('voice', 'entity.EntityVoice/getList');
            Route::post('voice', 'entity.EntityVoice/add');
            Route::put('voice/:id', 'entity.EntityVoice/edit');
            Route::delete('voice', 'entity.EntityVoice/del');
        });
        /****人声TAG定制-结束****/

        /****声光电-开始****/
        Route::group('',function(){
            Route::get('sound_light/:id', 'entity.EntitySoundLight/getDetail');
            Route::get('sound_light', 'entity.EntitySoundLight/getList');
            Route::post('sound_light', 'entity.EntitySoundLight/add');
            Route::put('sound_light/:id', 'entity.EntitySoundLight/edit');
            Route::delete('sound_light', 'entity.EntitySoundLight/del');
        });
        /****声光电-结束****/

        /****艺名logo-开始****/
        Route::group('',function(){
            /****套曲串烧管理-开始****/
            Route::get('stage_name_logo/:id', 'entity.EntityStageNameLogo/getDetail');
            Route::get('stage_name_logo', 'entity.EntityStageNameLogo/getList');
            Route::post('stage_name_logo', 'entity.EntityStageNameLogo/add');
            Route::put('stage_name_logo/:id', 'entity.EntityStageNameLogo/edit');
            Route::delete('stage_name_logo', 'entity.EntityStageNameLogo/del');
            /****套曲串烧管理-结束****/

            /****套曲串烧分类管理-开始****/
            Route::get('stage_name_logo_type/tree', 'entity.EntityStageNameLogoType/getTree');
            Route::get('stage_name_logo_type/:id', 'entity.EntityStageNameLogoType/getDetail');
            Route::get('stage_name_logo_type', 'entity.EntityStageNameLogoType/getList');
            Route::post('stage_name_logo_type', 'entity.EntityStageNameLogoType/add');
            Route::put('stage_name_logo_type/:id', 'entity.EntityStageNameLogoType/edit');
            Route::delete('stage_name_logo_type', 'entity.EntityStageNameLogoType/del');
            /****套曲串烧分类管理-结束****/
        });
        /****艺名logo-结束****/

        /****dj设备-开始****/
        Route::group('',function(){
            /****套曲串烧管理-开始****/
            Route::get('dj_equipment/:id', 'entity.EntityDjEquipment/getDetail');
            Route::get('dj_equipment', 'entity.EntityDjEquipment/getList');
            Route::post('dj_equipment', 'entity.EntityDjEquipment/add');
            Route::put('dj_equipment/:id', 'entity.EntityDjEquipment/edit');
            Route::delete('dj_equipment', 'entity.EntityDjEquipment/del');
            /****套曲串烧管理-结束****/

            /****套曲串烧分类管理-开始****/
            Route::get('dj_equipment_type/tree', 'entity.EntityDjEquipmentType/getTree');
            Route::get('dj_equipment_type/:id', 'entity.EntityDjEquipmentType/getDetail');
            Route::get('dj_equipment_type', 'entity.EntityDjEquipmentType/getList');
            Route::post('dj_equipment_type', 'entity.EntityDjEquipmentType/add');
            Route::put('dj_equipment_type/:id', 'entity.EntityDjEquipmentType/edit');
            Route::delete('dj_equipment_type', 'entity.EntityDjEquipmentType/del');
            /****套曲串烧分类管理-结束****/
        });
        /****dj设备-结束****/
    })->prefix('entity/');
    /****实物管理-结束****/

    /****拼团商品-开始****/
    Route::group('group',function(){

        /****拼团商品-开始****/
        Route::group('goods',function(){
            Route::get(':id', 'group.GroupGoods/getDetail');
            Route::get('', 'group.GroupGoods/getList');
            Route::post('edit_other', 'group.GroupGoods/edit_other');
            Route::post('', 'group.GroupGoods/add');
            Route::put(':id', 'group.GroupGoods/edit');
            Route::delete('', 'group.GroupGoods/del');
        })->prefix('goods/');
        /****拼团商品-结束****/

        /****拼团订单-开始****/
        Route::group('order',function(){
            Route::get('','group.GroupOrder/getList');
            Route::get('/:id','group.GroupOrder/getDetail');
            Route::post('export','group.GroupOrder/export');
            Route::post('audit','group.GroupOrder/audit');
        })->prefix('order/');
        /****拼团订单-结束****/

    })->prefix('group/');
    /****拼团商品-结束****/

    /****优惠券管理-开始****/
    Route::get('coupon/:id', 'coupon.Coupon/getDetail');
    Route::get('coupon', 'coupon.Coupon/getList');
    Route::post('coupon', 'coupon.Coupon/add');
    Route::put('coupon/:id', 'coupon.Coupon/edit');
    Route::delete('coupon', 'coupon.Coupon/del');
    /****优惠券管理-结束****/

    /****banner管理-开始****/
    Route::get('banner/:id', 'banner.Index/getDetail');
    Route::get('banner', 'banner.Index/getList');
    Route::post('banner', 'banner.Index/add');
    Route::put('banner/:id', 'banner.Index/edit');
    Route::delete('banner', 'banner.Index/del');

    /****banner管理-结束****/

    /****订单管理-开始****/
    Route::group('order',function(){
        Route::group('music',function(){
            Route::get('','order.OrderMusic/getList');
            Route::get('/:id','order.OrderMusic/getDetail');
            Route::post('export','order.OrderMusic/export');
            Route::post('audit','order.OrderMusic/audit');
        })->prefix('music/');

        Route::group('entity',function(){
            Route::get('','order.OrderEntity/getList');
            Route::get('/:id','order.OrderEntity/getDetail');
            Route::post('/complete','order.OrderEntity/complete');//完成
        })->prefix('entity/');

    })->prefix('order/');

    /****订单管理-结束****/



    /****圈子-开始****/
    Route::group('circle',function(){
        /****圈子分类-开始****/
        Route::group(function(){
            Route::get('type/:id', 'circle.CircleType/getDetail');
            Route::get('type', 'circle.CircleType/getList');
            Route::post('type', 'circle.CircleType/add');
            Route::put('type/:id', 'circle.CircleType/edit');
            Route::delete('type', 'circle.CircleType/del');
        });
        /****圈子分类-结束****/
        /****圈子-开始****/
        Route::group(function(){
            Route::get('circle/:id', 'circle.Circle/getDetail');
            Route::get('circle', 'circle.Circle/getList');
            Route::post('circle', 'circle.Circle/add');
            Route::put('circle/:id', 'circle.Circle/edit');
            Route::delete('circle', 'circle.Circle/del');
        });
        /****圈子-结束****/
        /****圈子评论-开始****/
        Route::group(function(){
            Route::get('comment/:id', 'circle.CircleComment/getDetail');
            Route::get('comment', 'circle.CircleComment/getList');
            Route::post('comment/audit', 'circle.CircleComment/audit');
            Route::post('comment', 'circle.CircleComment/add');
            Route::put('comment/:id', 'circle.CircleComment/edit');
            Route::delete('comment', 'circle.CircleComment/del');
        });
        /****圈子评论-结束****/
    })->prefix('circle/');
    /****圈子-开始****/

})->middleware(\app\admin\middleware\CheckAuth::class);
